import redis

TORTOISE_ORM = {
    "connections": {
        "default": {
            "engine": "tortoise.backends.mysql",
            "credentials": {
                "host": "47.104.131.233",
                "port": 3306,
                "user": "spt2503_xm2",
                "password": "xm2Pwd",
                "database": "spt2503_xm2_re",
            }
        }
    },
    "apps": {
        "models": {
            "models": ["apps.models", "aerich.models"],  # 关键修改
            "default_connection": "default",
        }
    },
    "timezone": "Asia/Shanghai",
}
# 配置Redis用于存储验证码
redis_client = redis.Redis(host='localhost', port=6379, db=0)
